<?php
$this->breadcrumbs=array(
	'Tin tức'=>array('index'),
	$model1->tieu_de,
);
?>
<?php
	$url=Yii::app()->request->baseUrl;
	if(!Yii::app()->user->isGuest){	
		echo'<a href="'.$url.'/site/update/id/'.$model1->id.'"><img src="'.$url.'/images/edit-icon.png" class="icon"/></a>';
		echo CHtml::link('<img src='.$url.'/images/delete-icon.png class="icon1" />',"#", array("submit"=>array('delete1', 'id'=>$model1->id), 'confirm' => 'Bạn có chắc xóa không?'));
	}	
?>
	<h2 class="tieu_de"><?php echo $model1->tieu_de;?></h2>
	<p class="trich"><?php echo $model1->noi_dung_trich;?></p>
	<p><?php echo $model1->noi_dung;?></p>
<div id="tinlienquan">
	<h1>Tin liên quan:</h1>
	<ul>
		<?php
			$tinLienQuan=new TinTuc();
			$rows=$tinLienQuan->selectListTP($model1->loai_tin,$model1->id,5, 0);
			foreach($rows as $row){
				echo'<li><a href="'.$url.'/site/view/id/'.$row["id"].'">'.$row["tieu_de"].'</a></li>';
			}
		?>
	</ul>
</div>